using System;
using System.Collections.Generic;
using System.Text;

namespace BABILON
{
    abstract class Robot
    {
        private int _M;  //Trong luong
        private int _nangLuongTieuThu; // Nang luong da su dung

        public int NangLuongTieuThu
        {
            get { return _nangLuongTieuThu; }
            set { _nangLuongTieuThu = value; }
        }

        public Robot()
        {
            M = 0;
        }

        public int M
        {
            get { return _M; }
            set { _M = value; }
        }
        
        public Robot(int m)
        {
            M = m;
        }

        public abstract int DiChuyen(int S);
        public abstract String TenLop();
        public virtual void XuatThongTin()
        {
            Console.WriteLine("Loai robot" + TenLop());
            Console.WriteLine("Trong luong: " + M);
        }
    }
}
